package com.bwie.service.impl;

import com.bwie.utils.R;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.Region;
import com.bwie.mapper.RegionMapper;
import com.bwie.service.RegionService;
@Service
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements RegionService{

    @Autowired
    private RegionMapper regionMapper;


    @Override
    public R getRegion() {

         List<Region> regions = regionMapper.selectList(null);
        return R.OK(regions);
    }
}
